package fourzerofour.guoshixu.day01;

public class Question6 {
    public static void main(String[] args) {
        //总和
        int sum = 0;
        //每次计算的数字
        int num = 9;
        //每次计算需要的基数
        int cardinality = 9;
        //输入语句
        String inputStr = "9";
        for(int i=1;i<6;i++){
            sum += num;
            num = num * 10 + cardinality;
            inputStr += "+" + num;
        }
        inputStr += "=" + sum;
        System.out.println(inputStr);
    }
}
